package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

//@Data//get和set方法
//@NoArgsConstructor//无参构造
//@AllArgsConstructor//全参构造
public class PageBeans {
    private Long total;//总记录数
    private List rows;//结果列表（数据列表）

    public PageBeans(){}
    public PageBeans(Long total, List rows) {
        this.total = total;
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "PageBeans{" +
                "total=" + total +
                ", rows=" + rows +
                '}';
    }
}
